﻿using EkStudio.com.bean.xml.reflection;
using EkStudio.com.bean.xml.RootInterface;

namespace EkStudio.com.bean.xml.WorkFlow.Node
{
    /// <summary>
    /// 全局java扩展代码
    /// </summary>
    public class WflowEventPluginModule : BillObjectInterface
    {
        private string key = "";
        private bool enabled = true;
        private string javaPackage = "";
        private string content = "";


        
        [Xml]
        public string Key
        {
            get
            {
                return key;
            }

            set
            {
                key = value;
            }
        }
        [Xml]
        public bool Enabled
        {
            get
            {
                return enabled;
            }

            set
            {
                enabled = value;
            }
        }
        [Xml]
        public string JavaPackage
        {
            get
            {
                return javaPackage;
            }

            set
            {
                javaPackage = value;
            }
        }
        [XmlElement]
        public string Content
        {
            get
            {
                return content;
            }

            set
            {
                content = value;
            }
        }

        [XmlTransient]
        public object ParentBean
        {
            get
            {
                return null;
            }
            set
            {

            }
        }

        public object Clone()
        {
            WflowEventPluginModule clone = new WflowEventPluginModule();
            clone.Key = key;
            clone.JavaPackage = javaPackage;
            clone.Enabled = enabled;
            clone.Content = content;
            return clone;
        }
    }
}
